package command.remoteController.command.airConditoner;

import command.remoteController.command.base.Command;
import command.remoteController.receiver.AirConditionerReceiver;
import command.remoteController.receiver.base.Receiver;

public class AirConditionerOnCommand implements Command {

    private Receiver receiver;

    public AirConditionerOnCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.on();
    }

    @Override
    public void undo() {
        receiver.off();
    }
}
